Skip to content

fix: resolve clippy warnings and CI formatting#19

Merged
devwhodevs merged 1 commit intomainfrom
fix/clippy-fmt-ci
Apr 1, 2026
Merged

fix: resolve clippy warnings and CI formatting#19
devwhodevs merged 1 commit intomainfrom
fix/clippy-fmt-ci

Conversation

@devwhodevs
Copy link
Copy Markdown
Owner

Summary

  • Fix 3 clippy warnings introduced in v1.5.3 merge that broke CI on main
  • links.rs: replace manual ext_len >= 1 && ext_len <= 6 with (1..=6).contains(&ext_len)
  • writer.rs: collapse nested if let into single expression, remove let_and_return
  • Apply cargo fmt formatting

Verification

  • cargo fmt --check
  • cargo clippy -- -D warnings
  • cargo test --lib — 450 passed ✅

- Replace manual range check with RangeInclusive::contains (links.rs)
- Collapse nested if-let into single expression (writer.rs)
- Remove unnecessary let binding before return (writer.rs)
- Apply cargo fmt formatting
@devwhodevs devwhodevs merged commit 4c06cdc into main Apr 1, 2026
3 checks passed
@devwhodevs devwhodevs deleted the fix/clippy-fmt-ci branch April 1, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant